{% extends "account/base_account.html" %}
{% load i18n %}

{% block content %}
<h1>{{ title }}</h1>

<span class="right_button">
    <a href="{{ add_link }}" >{% trans "add a new account" %}</a>
</span>
<div class="center_list">
    {% if accounts %}
    <ul class="common_list">
    {% for acct in accounts %}
        <li>
            <span class="name">{{ acct.name }}</span>
            <span class="agent">{{ acct.get_agent_display }}</span>
            <span class="money">{{ acct.balance }}{{ acct.currency }}</span>
            {% if acct.rate %}
            <span class="rate">{{ acct.rate }}</span>
            {% endif %}
            {% if acct.expire_date %}
            <span class="expire_date">{{ acct.expire_date }}</span>
            {% endif %}
            {% if acct.time %}
            <span class="time">{{ acct.time }}</span>
            {% endif %}
            <span class="state">{{ acct.get_state_display }}</span>
            <span class="op">
                <a href="#">{% trans "edit" %}</a>|
                <a href="#">{% trans "delete" %}</a>
            </span>
        </li>
    {% endfor %}
    </ul>
    {% else %}
    {% trans "You don't have any corresponding account now." %}
    <a href="{{ add_link }}">{% trans "add a new account" %}</a>
    {% endif %}
</div>


{% endblock %}
